package cn.edu.xmu.wnw.pojo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;


/**
 * Wiki entity. @author MyEclipse Persistence Tools
 */

public class Wiki  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Article article;
     private String title;
     private String content;
     private Date createTime;
     private Integer hit;
     private Integer state;
     private Set wikiComments = new HashSet(0);
     private Set wikiAttachments = new HashSet(0);


    // Constructors

    /** default constructor */
    public Wiki() {
    }

    
    /** full constructor */
    public Wiki(Article article, String title, String content, Date createTime, Integer hit, Integer state, Set wikiComments, Set wikiAttachments) {
        this.article = article;
        this.title = title;
        this.content = content;
        this.createTime = createTime;
        this.hit = hit;
        this.state = state;
        this.wikiComments = wikiComments;
        this.wikiAttachments = wikiAttachments;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Article getArticle() {
        return this.article;
    }
    
    public void setArticle(Article article) {
        this.article = article;
    }

    public String getTitle() {
        return this.title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getHit() {
        return this.hit;
    }
    
    public void setHit(Integer hit) {
        this.hit = hit;
    }

    public Integer getState() {
        return this.state;
    }
    
    public void setState(Integer state) {
        this.state = state;
    }

    public Set getWikiComments() {
        return this.wikiComments;
    }
    
    public void setWikiComments(Set wikiComments) {
        this.wikiComments = wikiComments;
    }

    public Set getWikiAttachments() {
        return this.wikiAttachments;
    }
    
    public void setWikiAttachments(Set wikiAttachments) {
        this.wikiAttachments = wikiAttachments;
    }
   








}